package com.manage.project.biz.service.impl;

import java.util.List;
import com.manage.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizQitasheshiguzhangjianchaMapper;
import com.manage.project.biz.domain.BizQitasheshiguzhangjiancha;
import com.manage.project.biz.service.IBizQitasheshiguzhangjianchaService;

/**
 Service业务层处理
 *
 * @author liutao
 *
 */
@Service
public class BizQitasheshiguzhangjianchaServiceImpl implements IBizQitasheshiguzhangjianchaService
{
    @Autowired
    private BizQitasheshiguzhangjianchaMapper bizQitasheshiguzhangjianchaMapper;

    /**
     * 查询其他设施故障检查
     *
     * @param id 其他设施故障检查主键
     * @return 其他设施故障检查
     */
    @Override
    public BizQitasheshiguzhangjiancha selectBizQitasheshiguzhangjianchaById(Long id)
    {
        return bizQitasheshiguzhangjianchaMapper.selectBizQitasheshiguzhangjianchaById(id);
    }

    /**
     * 查询其他设施故障检查列表
     *
     * @param bizQitasheshiguzhangjiancha 其他设施故障检查
     * @return 其他设施故障检查
     */
    @Override
    public List<BizQitasheshiguzhangjiancha> selectBizQitasheshiguzhangjianchaList(BizQitasheshiguzhangjiancha bizQitasheshiguzhangjiancha)
    {
        return bizQitasheshiguzhangjianchaMapper.selectBizQitasheshiguzhangjianchaList(bizQitasheshiguzhangjiancha);
    }

    /**
     * 新增其他设施故障检查
     *
     * @param bizQitasheshiguzhangjiancha 其他设施故障检查
     * @return 结果
     */
    @Override
    public int insertBizQitasheshiguzhangjiancha(BizQitasheshiguzhangjiancha bizQitasheshiguzhangjiancha)
    {
        bizQitasheshiguzhangjiancha.setCreateTime(DateUtils.getNowDate());
        return bizQitasheshiguzhangjianchaMapper.insertBizQitasheshiguzhangjiancha(bizQitasheshiguzhangjiancha);
    }

    /**
     * 修改其他设施故障检查
     *
     * @param bizQitasheshiguzhangjiancha 其他设施故障检查
     * @return 结果
     */
    @Override
    public int updateBizQitasheshiguzhangjiancha(BizQitasheshiguzhangjiancha bizQitasheshiguzhangjiancha)
    {
        bizQitasheshiguzhangjiancha.setUpdateTime(DateUtils.getNowDate());
        return bizQitasheshiguzhangjianchaMapper.updateBizQitasheshiguzhangjiancha(bizQitasheshiguzhangjiancha);
    }

    /**
     * 批量删除其他设施故障检查
     *
     * @param ids 需要删除的其他设施故障检查主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshiguzhangjianchaByIds(Long[] ids)
    {
        return bizQitasheshiguzhangjianchaMapper.deleteBizQitasheshiguzhangjianchaByIds(ids);
    }

    /**
     * 删除其他设施故障检查信息
     *
     * @param id 其他设施故障检查主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshiguzhangjianchaById(Long id)
    {
        return bizQitasheshiguzhangjianchaMapper.deleteBizQitasheshiguzhangjianchaById(id);
    }
}
